import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import { BrowserRouter,Route,Redirect } from "react-router-dom";
import routes from './router';
import { renderRoutes } from 'react-router-config'

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <BrowserRouter>
    {renderRoutes(routes)}
    <Route path="/" exact render={()=>(
        <Redirect to="/app"/>
      )}/> 
    {/* <Route path="/" exact render={()=>(
        <Redirect to="/app"/>
      )}/> 
        <Route path="/app" component={App}/>
        <Route path="/city" component={CityUI} />
        <Route path="/search" component={Search} /> */}
  </BrowserRouter>
);



